package com.itcast.n3_类的加载器;

//-Xbootclasspath/a:E:/code/flyduck-note/jvm/jar/classloader-test.jar
//A类被初始化了
//clazz = class com.itheima.my.A
public class Test03_使用参数让启动类加载器加载自定义jar {
    public static void main(String[] args) throws ClassNotFoundException {
        Class<?> clazz = Class.forName("com.itheima.my.A");
        System.out.println("clazz = " + clazz);
        ClassLoader classLoader = clazz.getClassLoader();
        System.out.println("classLoader = " + classLoader);
    }
}
